import request from '@/utils/request'

export function fetchQualityCheckReportList(data) {
  return request({
    url: '/system/job/QualityCheckReport/list',
    method: 'post',
    data
  })
}

export function getQualityCheckReport(id) {
  return request({
    url: '/system/job/QualityCheckReport/detail/' + id,
    method: 'get'
  })
}

export function createQualityCheckReport(data) {
  return request({
    url: '/system/job/QualityCheckReport/add',
    method: 'post',
    data
  })
}

export function updateQualityCheckReport(data) {
  return request({
    url: '/system/job/QualityCheckReport/update',
    method: 'post',
    data
  })
}

export function deleteQualityCheckReport(ids) {
  return request({
    url: '/system/job/QualityCheckReport/delete',
    method: 'post',
    data: { ids }
  })
}

